<script>
export default {
  onLaunch() {
    console.log("App Launch");
  },
  onShow() {
    // 启动或重启即时通讯
    this.$store.dispatch("connectSocket");
  },
  onHide() {
    // 断开即时通讯
    this.$store.dispatch("close");
  },
};
</script>

<style lang="scss">
/*每个页面公共css */
@import "@/uni_modules/uview-ui/index.scss";
</style>
